package com.situ.day14lianxi1;

import org.junit.Test;

public class Demo {
	@Test
	public void test1() {
		Student student1 = new Student(1, "张三", Gender.male);
		Student student2 = new Student(2, "李四", Gender.male);
		if (student1.getGender() == student2.getGender()) {
			System.out.println("性别相同");
		} else {
			System.out.println("性别不同");
		}
	}
	@Test
	public void test2() {
		GenderTest genderTest = GenderTest.male;
		System.out.println(genderTest);
		System.out.println(genderTest.getValue());
	}
	

}
